package cn.atzxc.qy.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 用户信息表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("user")
public class User {
  @TableId(value = "user_id", type = IdType.AUTO)
  private long user_id;

  @TableField("university_id")
  private long university_id;//所属学校
  @TableField("campus_id")
  private long campus_id;//所属校区

  @TableField("openid")
  private String openid;
  @TableField("phoneNumber")
  private long phoneNumber;
  @TableField("username")
  private String username;
  @TableField("password")
  private String password;
  @TableField("fullName")
  private String fullName;
  @TableField("gender")
  private long gender;
  @TableField("registrationTime")
  private java.sql.Timestamp registrationTime;
  @TableField("lastLoginTime")
  private java.sql.Timestamp lastLoginTime;
  @TableField("avatarImage")
  private String avatarImage;
  @TableField("userStatus")
  private long userStatus;
  @TableField("balance")
  private double balance;
  @TableField("authStatus")
  private String authStatus;
  @TableField("university")
  private String university;
  @TableField("loginMethod")
  private long loginMethod;


//  //嵌套大学对象
//  private University universityinfo;
//  //嵌套大学校区对象
//  private UniversityCampus universitycampusinfo;




}
